package CreationalPatterns.Single;
/*
饿汉式
 */
public class SingleObject1 {

  private static SingleObject1 instance = new SingleObject1();

  private SingleObject1(){};

  public static SingleObject1 getInstance() {
    return instance;
  }

  public void show(){
    System.out.println("饿汉式");
  }
}
